﻿package boy.contrib.net
{
   import flash.utils.*;

   public class URLFileVariable extends Object
   {
      private var _data:ByteArray;
      private var _name:String;

      /**
       * Take a fileName and byteArray as input and return Object post data suitable for a URLVariables as output
       * @param	imgByteArray   - ByteArray of the image.
       * @param	fileName       - Just the file name.
       */
      public function URLFileVariable(imgByteArray:ByteArray, fileName:String)
      {
         _data = imgByteArray;
         _name = fileName;
         return;
      }

      public function get data() : ByteArray
      {
         return _data;
      }

      public function get name() : String
      {
         return _name;
      }

   }
}